package com.mdd.common.mapper.user;

import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.user.User;
import com.mdd.common.entity.user.UserSigninLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * 用户签到记录表Mapper
 * @author panweiliang
 */
@Mapper
public interface UserSigninLogMapper extends IBaseMapper<UserSigninLog> {


    @Select({"SELECT * FROM ls_user_signin_log WHERE add_time > #{startTime} AND add_time < #{endTime}"})
    List<UserSigninLog> getBetweenStartAndEnd(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

}
